enum DifficultyLevel {
    case beginner
    case intermediate
    case expert
    
    var config: GameConfig {
        switch self {
        case .beginner:
            return GameConfig(width: 9, height: 9, mines: 10)
        case .intermediate:
            return GameConfig(width: 16, height: 16, mines: 40)
        case .expert:
            return GameConfig(width: 30, height: 16, mines: 99)
        }
    }
}

struct GameConfig {
    let width: Int
    let height: Int
    let mines: Int
} 